//
//  DetailsViewController.m
//  SnailPost
//
//  Created by Q on 16/3/15.
//  Copyright © 2016年 抠泥ser. All rights reserved.
//

#import "DetailsViewController.h"

@interface DetailsViewController ()

@end

@implementation DetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    // UIWebView 加载网络数据 直接适配屏幕
    UIWebView *wv = [[UIWebView alloc] initWithFrame:self.view.bounds];
    wv.scrollView.bounces = NO;
    //    wv.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:wv];
    self.navigationItem.title = self.title;
    
    // 加载网址
    NSString *url = self.str;
    [wv loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
